{include file='public/_meta'}
<title>前台列表</title>
</head>
<body>
<nav class=""><a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">

	<div class="cl pd-5 bg-1 bk-gray mt-20" style="margin-bottom: 10px;"> 
		<span class="l"></span>
		<span class="r">共有数据：<strong>{$totalcounts}</strong> 条</span> 
	</div>
	<table id="listTable" class="table table-border table-bordered table-bg table-sort display">
		<thead>
			<tr>
				<th scope="col" colspan="17">订单列表</th>
			</tr>
			<tr class="text-c">
				<th width="40">ID</th>
				<th width="80">登记部门</th>
				<th>提交状态</th>
				<th width="60">司仪</th>
				<th width="60">存尸</th>
				<th width="60">房间号</th>
				<th width="70">逝者姓名</th>
				<th width="40">性别</th>
				<th width="50">年龄</th>
				<th width="100">出殡日期</th>
				<th width="90">出殡费用</th>
				<th>火化炉</th>
				<th width="40">炉次</th>
				<th>告别厅</th>
				<th>备注</th>
				<th width="100">登记日期</th>
				<th>预订单号</th>
			</tr>
		</thead>
		<tbody>
			{if $list}
			{foreach $list as $k=>$v}
			<tr class="text-c">
				<td>{$v.id}</td>
				<td class="td-status"><span class="label {if $v.djbz==0}label-primary{/if}{if $v.djbz==1}label-secondary{/if}{if $v.djbz==2}label-success{/if} radius">{if $v.djbz==0}前台{/if}{if $v.djbz==1}车间{/if}{if $v.djbz==2}尸检所{/if}</span></td>
				<td class="td-status">
					{if $v.qttjcjbz=='提交车间'}<span class="label label-warning radius">{$v.qttjcjbz}</span>{/if}
					{if $v.qttjcjbz=='车间返还'}<span class="label llabel-danger radius">{$v.qttjcjbz}</span>{/if}
					{if $v.qttjcwbz=='提交财务'}<span class="label label-danger radius">{$v.qttjcwbz}</span>{/if}
					{if $v.qttjcwbz=='财务返还'}<span class="label label-warning radius">{$v.qttjcwbz}</span>{/if}
					{if $v.qttjcjbz=='登记' and $v.qttjcwbz=='登记' and $v.qttjbz=='登记' }<span class="label label-success radius">{$v.qttjbz}</span>{/if}
				</td>
				<td>{$v.sy}</td>
				<td class="td-status"><span class="label {if $v.is_cs=='是'}label-success{else}label-default{/if} radius">{$v.is_cs}</span></td>
				<td>{$v.cs_fjid}</td>
				<td>{$v.xm}</td>
				<td>{$v.xb}</td>
				<td>{$v.nl}</td>
				<td>{$v.cbrq|date="Y-m-d",###}</td>
				<td>{$v.cbfy}</td>
				<td>{$v.ydl}</td>
				<td>{$v.ydlc}</td>
				<td>{$v.gbt}</td>
				<td>{$v.bz}</td>
				<td>{$v.djrq}</td>
				<th>{$v.ddh}</th>

			</tr>
			{/foreach}
			{else}
			<tr class="text-c">
				<td colspan="17">暂无信息</td>
			</tr>
			{/if}
		</tbody>
	</table>
</div>
<div style="display: none;" id="printBox"></div>
<!--_footer 作为公共模版分离出去-->
{include file='public/_footer'}
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUBLIC__lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="__PUBLIC__lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
	var t;
    $(document).ready(function(){

		t = $('#listTable').dataTable({
			"aaSorting": [[ 0, "asc" ]],//默认第几个排序
			"bStateSave": false,//状态保存
			"aoColumnDefs": [
			//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
			{"orderable":false,"aTargets":[]}// 制定列不参与排序
			]
		});

		$('#listTable tbody').on( 'click', 'tr', function () {
			if ( $(this).hasClass('selected') ) {
				$(this).removeClass('selected');
			} else {
				$('#listTable tbody tr.selected').removeClass('selected');
				$(this).addClass('selected');
			}
		} );
	});

</script>
</body>
</html>